Page({
  data: {
    historyList: []
  },

  onLoad() {

  },

  onShow() {
    wx.getStorage({
      key: 'historyPreview',
      success: res => {
        let arr = JSON.parse(res.data);
        this.setData({
          historyList: arr
        });
      },
      fail: res => {}
    });
  },

  previewCard(e) {
    let {
      index
    } = e.currentTarget.dataset;
    wx.navigateTo({
      url: `/pages/groupCardPreview/index?type=history&current=${index}`
    });
  }
})